package com.fs.ibox_h.pojo;

import java.util.Date;

public class User {
    private Integer id;         //id,主键
    private String username;      //用户账号
    private String password;    //密码
    private String nickName;    //用户名
    private Integer state;          //账号状态，0为正常运行，1为锁定
    private String headportrait;//t头像访问路径
    private double money;       //用户余额
    private Integer num;        //藏品数量

    public User() {
    }

    public User(String userId, String password) {
        this.username = userId;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return username;
    }

    public void setUserId(String userId) {
        this.username = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getHeadportrait() {
        return headportrait;
    }

    public void setHeadportrait(String headportrait) {
        this.headportrait = headportrait;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userId='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickName='" + nickName + '\'' +
                ", state=" + state +
                ", headportrait='" + headportrait + '\'' +
                ", money='" + money + '\'' +
                ", num=" + num +
                '}';
    }
}
